<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class AdminController extends Controller
{
     /*
        显示后台页面
    */
    public function index()
    {
        //解析模板
        $id=session('id');

        $res = DB::table('userdetail')->where('id',$id)->first();
        
      	return view('Admin.admin.index',['res'=>$res]);
    }
}
